package com.monitor.entity.request.user;

import com.monitor.entity.request.BaseEntityRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 用户.
 *
 * @author Li Zhiyuan
 * @since 2020-11-13
 */
@Data
@ApiModel("用户请求")
public class UserRequest extends BaseEntityRequest {
    @NotEmpty(message = "姓名")
    @ApiModelProperty(value = "姓名")
    private String name;
    @NotEmpty(message = "用户名称不能为空")
    @ApiModelProperty(value = "用户名称")
    private String userName;
    @NotEmpty(message = "用户密码不能为空")
    @ApiModelProperty(value = "用户密码")
    private String passWord;

}
